package com.tools.cleanmaster.ui.card;

import android.app.Activity;

import com.tools.ad.EntranceType;
import com.tools.cleanmaster.ui.card.factory.CardListAdapter;
import com.tools.cleanmaster.ui.card.viewholder.ACardViewHolder;

/**
 * 广告卡片
 */
public class AdCardItem extends BaseAdCard {


    public AdCardItem(EntranceType entranceType, int pos) {
        super(entranceType, pos);
    }

    @Override
    public boolean needShow(EntranceType eType) {
        return true;
    }

    public String getTitle() {
        return "";
    }

    @Override
    public String getCardName() {
        return CardType.AD.key;
    }

    @Override
    public CardViewType getCardViewType() {
        return CardViewType.AD;
    }

    @Override
    public void bindCardView(final Activity activity, ACardViewHolder viewHolder, CardListAdapter cardAdapter, final int position) {
        super.bindCardView(activity, viewHolder, cardAdapter, position);
    }

    @Override
    public void onActivityDestroy() {
        mEntranceType.getAdScene().release();
    }


}
